class function_help(object):

    def dict_sort(self, my_dict):
        my_list = []
        for i in my_dict.keys():
            my_list.append(i)
        my_list.sort()
        result = {}
        for i in my_list:
            result[i] = my_dict[i]
        return result

    def format_ck_result(self, result_columns, column_names):
        result = []
        dict_result = {}
        for j in range(len(result_columns[0])):
            for i in range(len(column_names)):
                dict_name = column_names[i]
                dict_result[dict_name] = result_columns[i][j]
            result.append(dict_result)
        return result
